#ifndef HELLOMQTT_H
#define HELLOMQTT_H

#include <QMainWindow>
#include "./include/qmqtt.h"

namespace Ui {
class hellomqtt;
}

class hellomqtt : public QMainWindow
{
    Q_OBJECT

public:
    explicit hellomqtt(QWidget *parent = 0);
    ~hellomqtt();
public:
    void SendJsonMessege(QString name, char &flag);
    void HandlerJsonMessage(const QMQTT::Message& message);
public slots:
    void mqttconnect();
private slots:
    void on_LightButton_clicked();

    void on_DoorButton_clicked();

    void on_FanButton_clicked();

    void on_SocketButton_clicked();

    void on_TvButton_clicked();

    void on_CurtainButton_clicked();

private:
    Ui::hellomqtt *ui;
    QMQTT::Client *client;
};

#endif // HELLOMQTT_H
